package com.zhuimeng.second.controller;

import com.zhuimeng.second.service.SecondKillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class SecondKillController {
    @Autowired
    private SecondKillService secondKillService;

    @GetMapping("/test")
    public String test(){
        return secondKillService.secondKill(UUID.randomUUID().toString().replace("-",""));
    }
}
